x11: Update root window scale when the screen scale changes
authorAlexander Larsson <alexl@redhat.com>
Sat, 3 Aug 2013 14:49:38 +0000 (16:49 +0200)
committerAlexander Larsson <alexl@redhat.com>
Sat, 3 Aug 2013 14:53:46 +0000 (16:53 +0200)
gdk/x11/gdkscreen-x11.c

index 19961b52d4ee7408a43fd03cde18c8431f9d63f1..1baf471f31a9ece422812c944b5c2020e46ffff1 100644 (file)
@@ -1096,12 +1096,16 @@ _gdk_x11_screen_set_window_scale (GdkX11Screen *x11_screen,
                                  int scale)
 {
   GList *toplevels, *l;
+  GdkWindow *root;
 
   if (x11_screen->window_scale == scale)
     return;
 
   x11_screen->window_scale = scale;
 
+  root = x11_screen->root_window;
+  GDK_WINDOW_IMPL_X11 (root->impl)->window_scale = scale;
+
   toplevels = gdk_screen_get_toplevel_windows (GDK_SCREEN (x11_screen));
 
   for (l = toplevels; l != NULL; l = l->next)